package com.kimstore.dao;

import com.kimstore.bean.Batch;
import com.kimstore.bean.Staff;
import java.util.Date;
import java.util.List;

public interface BatchDao extends GenericJpaDao<Batch, Integer> {

    boolean existsNumber(long number);

    List<Batch> findByStaff(Staff staff);
    
    List<Batch> findByStaff(Staff staff, Date startDate, Date endDate);

    Batch findByNumber(long number);

    double findTotalPurchaseCost(Date startDate, Date endDate);
    
    List<Batch> findByDate(Date startDate, Date endDate);

    List<Batch> findAll(int startIndex, int lastIndex);

    long count();
}
